namespace IMPlant.Core.Data.Ado.Action
{
    using IMPlant.Core.Data.DataInterface;
    using System;
    using System.Data;
    using System.Data.Common;
    using System.Data.SqlClient;
    using System.Runtime.InteropServices;

    public class ExcuteFillDataSet : CommandAction
    {
        public ExcuteFillDataSet(CommandType type, string text, DbParameter[] paras)
        {
            base.type = type;
            base.commandText = text;
            base.parameters = paras;
        }

        public override object DoInCommand(DbCommand cmm)
        {
            DataSet dataSet = new DataSet();
            new SqlDataAdapter((SqlCommand) cmm).Fill(dataSet);
            return dataSet;
        }
    }
}

